<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    
  </head>
  <!-- end header -->
  <body>
    <div class="page-group">
      <div class="page page-current">
        
        <header class="bar student-bar bar-black">
          <a href="${ctx.host}/home" class="icon icon-left pull-left"></a>
          <h1 class="title">签到记录</h1>
        </header>
        
        <div class="content" style="margin-top: 2.2rem;">
        
           <div class="signin-banner">
            <div class="row">
              <div class="col-50 text-center">
                <span class="word">今日签到</span><br>
                <span class="amount">${todayAmount}</span>
              </div>
              <div class="col-50 text-center">
                <span class="word">总计签到</span><br>
                <span class="amount">${totalAmount}</span>
              </div>
            </div>
          </div>          
          <!-- end signin banner -->
          
          
          <div class="list-block no-margin">
            <ul>
              <c:forEach var="record" items="${signinRecords}">
                <li class="item-content monthly-signin-item">
                  <div class="item-inner">
                    <div class="item-title">
                      <small>${record.courseName}</small>
                      <span class="pull-right">${record.studentName}&nbsp;/&nbsp;${record.studentMobile}</span><br/>
                      <span class="pull-right signin-time"><fmt:formatDate value="${record.signinTime}" pattern="yyyy-MM-dd HH:mm:ss"/></span>
                    </div>
                  </div>
                </li>
              </c:forEach>
            </ul> 
          </div>

            <!-- End card -->
            
        </div>
        <!-- End Content -->
        
      </div>
    </div>
    
    <%@ include file="/WEB-INF/include/script.jsp"%>
   
  </body>
</html>